package com.huo;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class JedisConnectionUtil {

    private static JedisPool pool= null;
    static {
        JedisPoolConfig config = new JedisPoolConfig();
        config.setMaxTotal(10);
        pool = new JedisPool(config,"10.167.35.34",6379);
    }

    public static Jedis getJedis(){
        return pool.getResource();
    }
}
